﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Article_Default" %>
<%@ Register TagPrefix="uc" TagName="KeyPeopleModule" Src="~/Templates/Generic/KeyPeopleModule.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="centre">
        <div class="articleText  <%#SectionClass%>">
            <h1><asp:Label ID="lblTitle" runat="server" /></h1>
            <h2 id="articleTitle" runat="server"><acms:PostDisplayName ID="displayName" runat="server" /></h2>
            <ul class="articleHead">
                <li id="liAuthor" runat="server"><strong>Author</strong> : <acms:TextContentControlDisplay ID="acmsAuthor" ControlName="Author" runat="server" /></li>
                <%--<li id="liLastUpdated" runat="server"><strong>Last Updated</strong> : <acms:PostPublishFrom ID="publishFrom" Format="dddd dd MMMM yyyy" runat="server" /></li>--%>
                <asp:Repeater ID="listServices"  runat="server">
                    <HeaderTemplate>
                        <li>
                            <strong>Services</strong> : 
                    </HeaderTemplate>
                    <ItemTemplate><asp:HyperLink ID="lnkService" Text='<%#Eval("Name")%>' CssClass='<%#Eval("Name", "services{0}") %>' NavigateUrl='<%# AcmsContext.GetUrl(Eval("Name", "~/Services/{0}.aspx"))%>' runat="server" /></ItemTemplate>
                    <SeparatorTemplate>, </SeparatorTemplate>
                    <FooterTemplate>
                        </li>
                    </FooterTemplate>
                </asp:Repeater>
                <asp:Repeater ID="listSectors"  runat="server">
                    <HeaderTemplate>
                        <li>
                            <strong>Sectors</strong> : 
                    </HeaderTemplate>
                    <ItemTemplate><asp:HyperLink ID="lnkService" Text='<%#Eval("Name")%>' NavigateUrl='<%# AcmsContext.GetUrl(Eval("Name", "~/Sectors/{0}.aspx"))%>' runat="server" /></ItemTemplate>
                    <SeparatorTemplate>, </SeparatorTemplate>
                    <FooterTemplate>
                        </li>
                    </FooterTemplate>
                </asp:Repeater>
                <li id="liDownload1" runat="server">
                    <strong>Download</strong> :
                    <acms:PdfContentControlDisplay ID="acmsDownload1" CssClass="ico_pdf" ControlName="Download 1" runat="server" />
                </li>
                <li id="liDownload2" runat="server">
                    <strong>Download</strong> :
                    <acms:PdfContentControlDisplay ID="acmsDownload2" CssClass="ico_pdf" ControlName="Download 2" runat="server" />
                </li>
            </ul>
            <acms:ImageContentControlDisplay ID="acmsImageRight1" ControlName="Image Right 1" CssClass="imageRight" RenderWidth="250" RenderHeight="250" runat="server" />
            <div>
                <acms:HtmlContentControlDisplay ID="acmsContent1" ControlName="Content Area 1" runat="server" />
            </div>
            <acms:ImageContentControlDisplay ID="acmsImageCentre1" ControlName="Image Centre 1" CssClass="imageCenter" RenderWidth="450" RenderHeight="400" runat="server" />
            <acms:ImageContentControlDisplay ID="acmsImageRight2" ControlName="Image Right 2" CssClass="imageRight" RenderWidth="250" RenderHeight="250" runat="server" />
            <div>
                <acms:HtmlContentControlDisplay ID="acmsContent2" ControlName="Content Area 2" runat="server" />
            </div>
            <acms:ImageContentControlDisplay ID="acmsImageCentre2" ControlName="Image Centre 2" CssClass="imageCenter" RenderWidth="450" RenderHeight="400" runat="server" />
        </div>
        <div style="clear:both;"></div>
    </div>
    <div id="rightCol">
        <acms:RelatedPostsContentControl ID="acmsRelatedPosts" CssClass="relatedArticle" ControlName="Related Posts" runat="server">
            <HeaderTemplate>
                <h3 class="moduleTitle">Related Articles</h3>
                <ul>
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <asp:HyperLink ID="lnk" NavigateUrl='<%#Eval("Url") %>' Text='<%#Eval("DisplayName") %>' runat="server" />
                </li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </acms:RelatedPostsContentControl>
        <acms:AcmsDataList ID="dlPeople" CssClass="keyPeopleModule" Visible="false" runat="server">
            <HeaderTemplate>
                <h2 class="moduleTitle">Key People</h2>
            </HeaderTemplate>
            <ItemTemplate>
                <div class="keyPerson">
                    <acms:SubTemplateLoader ID="loader" TemplateFileName="List" runat="server" />
                    <div style="clear:both"></div>
                 </div> 
            </ItemTemplate>
        </acms:AcmsDataList>
        <uc:KeyPeopleModule ID="ucKeyPeople" Visible="false" runat="server" />
    </div>
</asp:Content>

